home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / Collections.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  15.6 KB  |  481 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Collections.p
  3.  
  4.      Contains:    Collection Manager Interfaces
  5.  
  6.      Version:    Technology:    System 7.x
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT Collections;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __COLLECTIONS__}
  27. {$SETC __COLLECTIONS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC CollectionsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __MACTYPES__}
  34. {$I MacTypes.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __MIXEDMODE__}
  37. {$I MixedMode.p}
  38. {$ENDC}
  39.  
  40.  
  41. {$PUSH}
  42. {$ALIGN MAC68K}
  43. {$LibExport+}
  44.  
  45. {***********}
  46. { Constants }
  47. {***********}
  48. { Convenience constants for functions which optionally return values }
  49.  
  50. CONST
  51.     kCollectionDontWantTag        = 0;
  52.     kCollectionDontWantId        = 0;
  53.     kCollectionDontWantSize        = 0;
  54.     kCollectionDontWantAttributes = 0;
  55.     kCollectionDontWantIndex    = 0;
  56.     kCollectionDontWantData        = 0;
  57.  
  58.  
  59. { attributes bits }
  60.     kCollectionNoAttributes        = $00000000;                    {  no attributes bits set  }
  61.     kCollectionAllAttributes    = $FFFFFFFF;                    {  all attributes bits set  }
  62.     kCollectionUserAttributes    = $0000FFFF;                    {  user attributes bits  }
  63.     kCollectionDefaultAttributes = $40000000;                    {  default attributes - unlocked, persistent  }
  64.  
  65.  
  66.     Attribute bits 0 through 15 (entire low word) are reserved for use by the application.
  67.     Attribute bits 16 through 31 (entire high word) are reserved for use by the Collection Manager.
  68.     Only bits 31 (kCollectionLockBit) and 30 (kCollectionPersistenceBit) currently have meaning.
  69. }
  70.     kCollectionUser0Bit            = 0;
  71.     kCollectionUser1Bit            = 1;
  72.     kCollectionUser2Bit            = 2;
  73.     kCollectionUser3Bit            = 3;
  74.     kCollectionUser4Bit            = 4;
  75.     kCollectionUser5Bit            = 5;
  76.     kCollectionUser6Bit            = 6;
  77.     kCollectionUser7Bit            = 7;
  78.     kCollectionUser8Bit            = 8;
  79.     kCollectionUser9Bit            = 9;
  80.     kCollectionUser10Bit        = 10;
  81.     kCollectionUser11Bit        = 11;
  82.     kCollectionUser12Bit        = 12;
  83.     kCollectionUser13Bit        = 13;
  84.     kCollectionUser14Bit        = 14;
  85.     kCollectionUser15Bit        = 15;
  86.     kCollectionReserved0Bit        = 16;
  87.     kCollectionReserved1Bit        = 17;
  88.     kCollectionReserved2Bit        = 18;
  89.     kCollectionReserved3Bit        = 19;
  90.     kCollectionReserved4Bit        = 20;
  91.     kCollectionReserved5Bit        = 21;
  92.     kCollectionReserved6Bit        = 22;
  93.     kCollectionReserved7Bit        = 23;
  94.     kCollectionReserved8Bit        = 24;
  95.     kCollectionReserved9Bit        = 25;
  96.     kCollectionReserved10Bit    = 26;
  97.     kCollectionReserved11Bit    = 27;
  98.     kCollectionReserved12Bit    = 28;
  99.     kCollectionReserved13Bit    = 29;
  100.     kCollectionPersistenceBit    = 30;
  101.     kCollectionLockBit            = 31;
  102.  
  103.  
  104. { attribute masks }
  105.     kCollectionUser0Mask        = $00000001;
  106.     kCollectionUser1Mask        = $00000002;
  107.     kCollectionUser2Mask        = $00000004;
  108.     kCollectionUser3Mask        = $00000008;
  109.     kCollectionUser4Mask        = $00000010;
  110.     kCollectionUser5Mask        = $00000020;
  111.     kCollectionUser6Mask        = $00000040;
  112.     kCollectionUser7Mask        = $00000080;
  113.     kCollectionUser8Mask        = $00000100;
  114.     kCollectionUser9Mask        = $00000200;
  115.     kCollectionUser10Mask        = $00000400;
  116.     kCollectionUser11Mask        = $00000800;
  117.     kCollectionUser12Mask        = $00001000;
  118.     kCollectionUser13Mask        = $00002000;
  119.     kCollectionUser14Mask        = $00004000;
  120.     kCollectionUser15Mask        = $00008000;
  121.     kCollectionReserved0Mask    = $00010000;
  122.     kCollectionReserved1Mask    = $00020000;
  123.     kCollectionReserved2Mask    = $00040000;
  124.     kCollectionReserved3Mask    = $00080000;
  125.     kCollectionReserved4Mask    = $00100000;
  126.     kCollectionReserved5Mask    = $00200000;
  127.     kCollectionReserved6Mask    = $00400000;
  128.     kCollectionReserved7Mask    = $00800000;
  129.     kCollectionReserved8Mask    = $01000000;
  130.     kCollectionReserved9Mask    = $02000000;
  131.     kCollectionReserved10Mask    = $04000000;
  132.     kCollectionReserved11Mask    = $08000000;
  133.     kCollectionReserved12Mask    = $10000000;
  134.     kCollectionReserved13Mask    = $20000000;
  135.     kCollectionPersistenceMask    = $40000000;
  136.     kCollectionLockMask            = $80000000;
  137.  
  138.  
  139. {*********}
  140. { Types   }
  141. {*********}
  142. { abstract data type for a collection }
  143.  
  144. TYPE
  145.     Collection = ^LONGINT;
  146. { collection member 4 byte tag }
  147.     CollectionTag                        = FourCharCode;
  148. {$IFC TYPED_FUNCTION_POINTERS}
  149.     CollectionFlattenProcPtr = FUNCTION(size: SInt32; data: UNIV Ptr; refCon: UNIV Ptr): OSErr;
  150. {$ELSEC}
  151.     CollectionFlattenProcPtr = ProcPtr;
  152. {$ENDC}
  153.  
  154. {$IFC TYPED_FUNCTION_POINTERS}
  155.     CollectionExceptionProcPtr = FUNCTION(c: Collection; status: OSErr): OSErr;
  156. {$ELSEC}
  157.     CollectionExceptionProcPtr = ProcPtr;
  158. {$ENDC}
  159.  
  160.     CollectionFlattenUPP = UniversalProcPtr;
  161.     CollectionExceptionUPP = UniversalProcPtr;
  162.  
  163. CONST
  164.     uppCollectionFlattenProcInfo = $00000FE0;
  165.     uppCollectionExceptionProcInfo = $000002E0;
  166.  
  167. FUNCTION NewCollectionFlattenProc(userRoutine: CollectionFlattenProcPtr): CollectionFlattenUPP;
  168.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  169.     INLINE $2E9F;
  170.     {$ENDC}
  171.  
  172. FUNCTION NewCollectionExceptionProc(userRoutine: CollectionExceptionProcPtr): CollectionExceptionUPP;
  173.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  174.     INLINE $2E9F;
  175.     {$ENDC}
  176.  
  177. FUNCTION CallCollectionFlattenProc(size: SInt32; data: UNIV Ptr; refCon: UNIV Ptr; userRoutine: CollectionFlattenUPP): OSErr;
  178.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  179.     INLINE $205F, $4E90;
  180.     {$ENDC}
  181.  
  182. FUNCTION CallCollectionExceptionProc(c: Collection; status: OSErr; userRoutine: CollectionExceptionUPP): OSErr;
  183.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  184.     INLINE $205F, $4E90;
  185.     {$ENDC}
  186. {*******************************************}
  187. {************ Public interfaces ************}
  188. {*******************************************}
  189. FUNCTION NewCollection: Collection;
  190.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  191.     INLINE $7000, $ABF6;
  192.     {$ENDC}
  193.  
  194. PROCEDURE DisposeCollection(c: Collection);
  195.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  196.     INLINE $7001, $ABF6;
  197.     {$ENDC}
  198.  
  199. FUNCTION CloneCollection(c: Collection): Collection;
  200.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  201.     INLINE $7002, $ABF6;
  202.     {$ENDC}
  203.  
  204. FUNCTION CountCollectionOwners(c: Collection): SInt32;
  205.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  206.     INLINE $7003, $ABF6;
  207.     {$ENDC}
  208.  
  209. FUNCTION CopyCollection(srcCollection: Collection; dstCollection: Collection): Collection;
  210.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  211.     INLINE $7004, $ABF6;
  212.     {$ENDC}
  213.  
  214. FUNCTION GetCollectionDefaultAttributes(c: Collection): SInt32;
  215.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  216.     INLINE $7005, $ABF6;
  217.     {$ENDC}
  218.  
  219. PROCEDURE SetCollectionDefaultAttributes(c: Collection; whichAttributes: SInt32; newAttributes: SInt32);
  220.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  221.     INLINE $7006, $ABF6;
  222.     {$ENDC}
  223.  
  224. FUNCTION CountCollectionItems(c: Collection): SInt32;
  225.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  226.     INLINE $7007, $ABF6;
  227.     {$ENDC}
  228.  
  229. FUNCTION AddCollectionItem(c: Collection; tag: CollectionTag; id: SInt32; itemSize: SInt32; itemData: UNIV Ptr): OSErr;
  230.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  231.     INLINE $7008, $ABF6;
  232.     {$ENDC}
  233.  
  234. FUNCTION GetCollectionItem(c: Collection; tag: CollectionTag; id: SInt32; VAR itemSize: SInt32; itemData: UNIV Ptr): OSErr;
  235.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  236.     INLINE $7009, $ABF6;
  237.     {$ENDC}
  238.  
  239. FUNCTION RemoveCollectionItem(c: Collection; tag: CollectionTag; id: SInt32): OSErr;
  240.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  241.     INLINE $700A, $ABF6;
  242.     {$ENDC}
  243.  
  244. FUNCTION SetCollectionItemInfo(c: Collection; tag: CollectionTag; id: SInt32; whichAttributes: SInt32; newAttributes: SInt32): OSErr;
  245.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  246.     INLINE $700B, $ABF6;
  247.     {$ENDC}
  248.  
  249. FUNCTION GetCollectionItemInfo(c: Collection; tag: CollectionTag; id: SInt32; VAR index: SInt32; VAR itemSize: SInt32; VAR attributes: SInt32): OSErr;
  250.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  251.     INLINE $700C, $ABF6;
  252.     {$ENDC}
  253.  
  254. FUNCTION ReplaceIndexedCollectionItem(c: Collection; index: SInt32; itemSize: SInt32; itemData: UNIV Ptr): OSErr;
  255.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  256.     INLINE $700D, $ABF6;
  257.     {$ENDC}
  258.  
  259. FUNCTION GetIndexedCollectionItem(c: Collection; index: SInt32; VAR itemSize: SInt32; itemData: UNIV Ptr): OSErr;
  260.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  261.     INLINE $700E, $ABF6;
  262.     {$ENDC}
  263.  
  264. FUNCTION RemoveIndexedCollectionItem(c: Collection; index: SInt32): OSErr;
  265.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  266.     INLINE $700F, $ABF6;
  267.     {$ENDC}
  268.  
  269. FUNCTION SetIndexedCollectionItemInfo(c: Collection; index: SInt32; whichAttributes: SInt32; newAttributes: SInt32): OSErr;
  270.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  271.     INLINE $7010, $ABF6;
  272.     {$ENDC}
  273.  
  274. FUNCTION GetIndexedCollectionItemInfo(c: Collection; index: SInt32; VAR tag: CollectionTag; VAR id: SInt32; VAR itemSize: SInt32; VAR attributes: SInt32): OSErr;
  275.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  276.     INLINE $7011, $ABF6;
  277.     {$ENDC}
  278.  
  279. FUNCTION CollectionTagExists(c: Collection; tag: CollectionTag): BOOLEAN;
  280.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  281.     INLINE $7012, $ABF6;
  282.     {$ENDC}
  283.  
  284. FUNCTION CountCollectionTags(c: Collection): SInt32;
  285.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  286.     INLINE $7013, $ABF6;
  287.     {$ENDC}
  288.  
  289. FUNCTION GetIndexedCollectionTag(c: Collection; tagIndex: SInt32; VAR tag: CollectionTag): OSErr;
  290.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  291.     INLINE $7014, $ABF6;
  292.     {$ENDC}
  293.  
  294. FUNCTION CountTaggedCollectionItems(c: Collection; tag: CollectionTag): SInt32;
  295.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  296.     INLINE $7015, $ABF6;
  297.     {$ENDC}
  298.  
  299. FUNCTION GetTaggedCollectionItem(c: Collection; tag: CollectionTag; whichItem: SInt32; VAR itemSize: SInt32; itemData: UNIV Ptr): OSErr;
  300.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  301.     INLINE $7016, $ABF6;
  302.     {$ENDC}
  303.  
  304. FUNCTION GetTaggedCollectionItemInfo(c: Collection; tag: CollectionTag; whichItem: SInt32; VAR id: SInt32; VAR index: SInt32; VAR itemSize: SInt32; VAR attributes: SInt32): OSErr;
  305.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  306.     INLINE $7017, $ABF6;
  307.     {$ENDC}
  308.  
  309. PROCEDURE PurgeCollection(c: Collection; whichAttributes: SInt32; matchingAttributes: SInt32);
  310.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  311.     INLINE $7018, $ABF6;
  312.     {$ENDC}
  313.  
  314. PROCEDURE PurgeCollectionTag(c: Collection; tag: CollectionTag);
  315.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  316.     INLINE $7019, $ABF6;
  317.     {$ENDC}
  318.  
  319. PROCEDURE EmptyCollection(c: Collection);
  320.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  321.     INLINE $701A, $ABF6;
  322.     {$ENDC}
  323. FUNCTION FlattenCollection(c: Collection; flattenProc: CollectionFlattenUPP; refCon: UNIV Ptr): OSErr;
  324.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  325.     INLINE $701B, $ABF6;
  326.     {$ENDC}
  327.  
  328. FUNCTION FlattenPartialCollection(c: Collection; flattenProc: CollectionFlattenUPP; refCon: UNIV Ptr; whichAttributes: SInt32; matchingAttributes: SInt32): OSErr;
  329.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  330.     INLINE $701C, $ABF6;
  331.     {$ENDC}
  332.  
  333. FUNCTION UnflattenCollection(c: Collection; flattenProc: CollectionFlattenUPP; refCon: UNIV Ptr): OSErr;
  334.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  335.     INLINE $701D, $ABF6;
  336.     {$ENDC}
  337.  
  338. FUNCTION GetCollectionExceptionProc(c: Collection): CollectionExceptionUPP;
  339.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  340.     INLINE $701E, $ABF6;
  341.     {$ENDC}
  342.  
  343. PROCEDURE SetCollectionExceptionProc(c: Collection; exceptionProc: CollectionExceptionUPP);
  344.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  345.     INLINE $701F, $ABF6;
  346.     {$ENDC}
  347.  
  348. FUNCTION GetNewCollection(collectionID: SInt16): Collection;
  349.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  350.     INLINE $7020, $ABF6;
  351.     {$ENDC}
  352.  
  353. {********************************************************************}
  354. {************* Utility routines for handle-based access *************}
  355. {********************************************************************}
  356. FUNCTION AddCollectionItemHdl(aCollection: Collection; tag: CollectionTag; id: SInt32; itemData: Handle): OSErr;
  357.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  358.     INLINE $7021, $ABF6;
  359.     {$ENDC}
  360.  
  361. FUNCTION GetCollectionItemHdl(aCollection: Collection; tag: CollectionTag; id: SInt32; itemData: Handle): OSErr;
  362.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  363.     INLINE $7022, $ABF6;
  364.     {$ENDC}
  365.  
  366. FUNCTION ReplaceIndexedCollectionItemHdl(aCollection: Collection; index: SInt32; itemData: Handle): OSErr;
  367.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  368.     INLINE $7023, $ABF6;
  369.     {$ENDC}
  370.  
  371. FUNCTION GetIndexedCollectionItemHdl(aCollection: Collection; index: SInt32; itemData: Handle): OSErr;
  372.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  373.     INLINE $7024, $ABF6;
  374.     {$ENDC}
  375.  
  376. FUNCTION FlattenCollectionToHdl(aCollection: Collection; flattened: Handle): OSErr;
  377.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  378.     INLINE $7025, $ABF6;
  379.     {$ENDC}
  380.  
  381. FUNCTION UnflattenCollectionFromHdl(aCollection: Collection; flattened: Handle): OSErr;
  382.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  383.     INLINE $7026, $ABF6;
  384.     {$ENDC}
  385.  
  386. {$IFC OLDROUTINENAMES }
  387.  
  388. CONST
  389.     dontWantTag                    = 0;
  390.     dontWantId                    = 0;
  391.     dontWantSize                = 0;
  392.     dontWantAttributes            = 0;
  393.     dontWantIndex                = 0;
  394.     dontWantData                = 0;
  395.  
  396.     noCollectionAttributes        = $00000000;
  397.     allCollectionAttributes        = $FFFFFFFF;
  398.     userCollectionAttributes    = $0000FFFF;
  399.     defaultCollectionAttributes    = $40000000;
  400.  
  401.     collectionUser0Bit            = 0;
  402.     collectionUser1Bit            = 1;
  403.     collectionUser2Bit            = 2;
  404.     collectionUser3Bit            = 3;
  405.     collectionUser4Bit            = 4;
  406.     collectionUser5Bit            = 5;
  407.     collectionUser6Bit            = 6;
  408.     collectionUser7Bit            = 7;
  409.     collectionUser8Bit            = 8;
  410.     collectionUser9Bit            = 9;
  411.     collectionUser10Bit            = 10;
  412.     collectionUser11Bit            = 11;
  413.     collectionUser12Bit            = 12;
  414.     collectionUser13Bit            = 13;
  415.     collectionUser14Bit            = 14;
  416.     collectionUser15Bit            = 15;
  417.     collectionReserved0Bit        = 16;
  418.     collectionReserved1Bit        = 17;
  419.     collectionReserved2Bit        = 18;
  420.     collectionReserved3Bit        = 19;
  421.     collectionReserved4Bit        = 20;
  422.     collectionReserved5Bit        = 21;
  423.     collectionReserved6Bit        = 22;
  424.     collectionReserved7Bit        = 23;
  425.     collectionReserved8Bit        = 24;
  426.     collectionReserved9Bit        = 25;
  427.     collectionReserved10Bit        = 26;
  428.     collectionReserved11Bit        = 27;
  429.     collectionReserved12Bit        = 28;
  430.     collectionReserved13Bit        = 29;
  431.     collectionPersistenceBit    = 30;
  432.     collectionLockBit            = 31;
  433.  
  434.     collectionUser0Mask            = $00000001;
  435.     collectionUser1Mask            = $00000002;
  436.     collectionUser2Mask            = $00000004;
  437.     collectionUser3Mask            = $00000008;
  438.     collectionUser4Mask            = $00000010;
  439.     collectionUser5Mask            = $00000020;
  440.     collectionUser6Mask            = $00000040;
  441.     collectionUser7Mask            = $00000080;
  442.     collectionUser8Mask            = $00000100;
  443.     collectionUser9Mask            = $00000200;
  444.     collectionUser10Mask        = $00000400;
  445.     collectionUser11Mask        = $00000800;
  446.     collectionUser12Mask        = $00001000;
  447.     collectionUser13Mask        = $00002000;
  448.     collectionUser14Mask        = $00004000;
  449.     collectionUser15Mask        = $00008000;
  450.     collectionReserved0Mask        = $00010000;
  451.     collectionReserved1Mask        = $00020000;
  452.     collectionReserved2Mask        = $00040000;
  453.     collectionReserved3Mask        = $00080000;
  454.     collectionReserved4Mask        = $00100000;
  455.     collectionReserved5Mask        = $00200000;
  456.     collectionReserved6Mask        = $00400000;
  457.     collectionReserved7Mask        = $00800000;
  458.     collectionReserved8Mask        = $01000000;
  459.     collectionReserved9Mask        = $02000000;
  460.     collectionReserved10Mask    = $04000000;
  461.     collectionReserved11Mask    = $08000000;
  462.     collectionReserved12Mask    = $10000000;
  463.     collectionReserved13Mask    = $20000000;
  464.     collectionPersistenceMask    = $40000000;
  465.     collectionLockMask            = $80000000;
  466.  
  467. {$ENDC}  {OLDROUTINENAMES}
  468.  
  469.  
  470. {$ALIGN RESET}
  471. {$POP}
  472.  
  473. {$SETC UsingIncludes := CollectionsIncludes}
  474.  
  475. {$ENDC} {__COLLECTIONS__}
  476.  
  477. {$IFC NOT UsingIncludes}
  478.  END.
  479. {$ENDC}
  480.